/*
 * Copyright (c) 2016 咖枯 <kaku201313@163.com | 3772304@qq.com>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
package payment.mobilepos.unionpay.com.metroguide.api;

public class ApiConstants {


    // 图片详情
    public static final String BASE_URL_1 = "http://service.shmetro.com/";
    public static final String BASE_URL_2 = "http://m.shmetro.com/";


    public static final String GET_ALL_STATIONS = "core/shmetro/mdstationinfoback.ashx";
    public static final String KEY_SHARED_PREFERENCES_NAME = "share_common";
    public static final String QUERYFARE = "i/p";//票价查询
    public static final String QUREYPATH = "i/c";//路径查询


    /**
     * 获取对应的host
     *
     * @param hostType host类型
     * @return host
     */
    public static String getHost(int hostType) {
        String host;
        switch (hostType) {
            case HostType.NETEASE_NEWS_VIDEO:
                host = BASE_URL_1;
                break;
            case HostType.GANK_GIRL_PHOTO:
                host = BASE_URL_2;
                break;
            case HostType.NEWS_DETAIL_HTML_PHOTO:
                host = "http://kaku.com/";
                break;
            default:
                host = "";
                break;
        }
        return host;
    }
}
